<?php
// $Id: page.tpl.php,v 1.0 2010/04/28 Evance Exp $
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<?php if($is_front) : ?>
<meta name="description" content="布拉格是Evance的个人网站:关注前端，流行音乐，电影，并记录生活。" />
<link rel="alternate" type="application/rss+xml" title="Evance RSS" href="http://feed.feedsky.com/evance" />
<?php endif; ?>
<?php print $head ?>
<title><?php print $head_title ?></title>
<?php print $styles ?>
<?php print $scripts ?>
</head>
<body>

<div id="hd" class="clearfix">
    <div class="content layout">
        <?php if ($is_front) : ?>
            <h1><a class="site-name float-l" href="<?php print $front_page ?>" title="<?php print($site_name) ?>"><?php print($site_name) ?></a></h1>
        <?php else: ?>
            <a class="site-name  float-l" href="<?php print $front_page ?>" title="<?php print($site_name) ?>"><?php print($site_name) ?></a>
        <?php endif; ?><!-- site-name end -->

        <?php //print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist')) ?><!-- primary-links end -->

        <?php if (isset($primary_links)) : ?>
          <?php print theme('links', $primary_links, array('class' => 'site-nav float-r')) ?>
        <?php endif; ?>
    </div>
</div>

<div id="bd" class="layout clearfix">
        <div id="main-content" class="border-radius box-shadow <?php if($right): ?>float-l two-col<?php endif; ?>">
            <?php print $header ?>
            <?php print theme('links', $secondary_links, array('class' => 'links', 'id' => 'subnavlist')) ?>
            <?php if ($mission != ""): ?>
                <div id="mission"><?php print $mission ?></div>
            <!-- mission end -->
            <?php endif; ?>

            <div id="main">
                <?php if ($title != ""): ?>
                    <?php print $breadcrumb ?>
                    <h1 class="title"><?php print $title ?></h1>

                    <?php if ($tabs != ""): ?>
                        <div class="tabs"><?php print $tabs ?></div>
                    <?php endif; ?>
                <?php endif; ?>

                <?php if ($show_messages && $messages != ""): ?>
                    <?php print $messages ?>
                <?php endif; ?>

                <?php if ($help != ""): ?>
                    <div id="help"><?php print $help ?></div>
                <?php endif; ?>

                <?php print $content; ?>
                <?php //print $feed_icons; ?>

            </div><!-- #main end -->            
        </div><!-- #main-content -->

        <?php if ($right != ""): ?>
        <div id="sidebar" class="float-r border-radius box-shadow">
            <?php print $search_box ?><!-- search-box end -->
              <?php print $right ?>
        </div>
        <!-- #sidebar end -->
        <?php endif; ?>

</div><!-- #bd end -->

<?php if ($footer_message || $footer) : ?>
<div id="ft">
    <div class="wrapper layout">
        <?php print $footer ?>
        <?php print $footer_message;?>
    </div>
</div>
<?php endif; ?>
<!--google analytics .2010-10-16 .Asynchronous Tracking-->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7501266-3']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!--google analytics 2010-10-16-->
<?php print $closure;?>
</body>
</html>
